package capitulo3;

/**
 * Stack y Heap
 */

class Collar{ }

public class Tema18_HeapStack {

	Collar c; 		// Instance Variable
	String name;	// Instance variable
	
	public static void main(String[] args) {
		
		Tema18_HeapStack d;	//Local Variable: d 
		d = new Tema18_HeapStack();
		d.go(d);
	}

	void go(Tema18_HeapStack dog ) {//Local Variable: dog

		c = new Collar();
		dog.setName("Fido");
	}

	void setName(String dogName) {	//Local Variable: dogName
		name = dogName;
		System.out.println("Name: "+name);
		// do more stuff
	}
	
}
